﻿using System.Configuration;
using Framework;

namespace Enterprise
{
    public class EquipmentConfig : ConfigService
    {
        static EquipmentConfig()
        {
            ThumbnailWidth = ConfigurationManager.AppSettings["EquipmentThumbnailWidth"].SafeToInt();
            ThumbnailHeight = ConfigurationManager.AppSettings["EquipmentThumbnailHeight"].SafeToInt();
            ThumbnailPrefix = ConfigurationManager.AppSettings["EquipmentThumbnailPrefix"].SafeToString();
            ImageSize = ConfigurationManager.AppSettings["EquipmentImageSize"].SafeToInt();
            NormalWidth = ConfigurationManager.AppSettings["EquipmentNormalWidth"].SafeToInt();
            NormalHeight = ConfigurationManager.AppSettings["EquipmentNormalHeight"].SafeToInt();
            NormalPrefix = ConfigurationManager.AppSettings["EquipmentNormalPrefix"].SafeToString();
            IsWaterMark = ConfigurationManager.AppSettings["IsEquipmentWaterMark"].SafeToBool();
            WaterMarkFileName = ConfigurationManager.AppSettings["EquipmentWaterMarkFileName"].SafeToString();
            WaterMarkRelativePath = ConfigurationManager.AppSettings["EquipmentWaterMarkRelativePath"].SafeToString();
            IsGenerateThumbnail = ConfigurationManager.AppSettings["IsEquipmentGenerateThumbnail"].SafeToBool();
            IsGenerateNormal = ConfigurationManager.AppSettings["IsEquipmentGenerateNormal"].SafeToBool();
            IsAdaptive = ConfigurationManager.AppSettings["IsEquipmentImageAdaptive"].SafeToBool();
            RelativePath = ConfigurationManager.AppSettings["EquipmentImageRelativePath"].SafeToString();
        }
        public new static int ThumbnailWidth { get; set; }

        public new static int ThumbnailHeight { get; set; }

        public new static int ImageSize { get; set; }

        public new static bool IsGenerateThumbnail { get; set; }

        public new static string ThumbnailPrefix { get; set; }

        public new static bool IsWaterMark { get; set; }

        public new static string RelativePath { get; set; }

        public new static string WaterMarkFileName { get; set; }

        public new static string WaterMarkRelativePath { get; set; }

        public new static bool IsGenerateNormal { get; set; }

        public new static bool IsAdaptive { get; set; }

        public new static int NormalWidth { get; set; }

        public new static int NormalHeight { get; set; }

        public new static string NormalPrefix { get; set; }

    }

}
